#ifndef _CORE_MESSAGE_HPP_
#define _CORE_MESSAGE_HPP_
enum CMD{
	CMD_LOGIN,
	CMD_LOGINOUT
};
class DataHeader{
public :
	short dataLength;
	short cmd;
	DataHeader(){
		dataLength = sizeof(DataHeader);
		cmd=0;
	}
};
class Login{

};
class LoginResult{
	int result;
};
class LoginOut{
	char userName[32];
};
class LoginOutResult{
	int result;
};
class NewUserJoin:public DataHeader{
public:
	char pwd[255];
	char name[255];
	NewUserJoin(){
		dataLength = sizeof(NewUserJoin);
		memset(pwd,0,255);
		memset(name,0,255);
	}
};

#endif